package com.rtx.wms.std.asn.bean;

import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rtx.api.annotation.RtxDynamicsClass;
import com.rtx.api.annotation.RtxSTDRequest;

import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author zcw
 * @since 2023-04-20
 */
@RtxDynamicsClass(name = "入库单API中间表",linkclass = "com.rtx.wms.std.asn.bean.Receipt")
@RtxSTDRequest(name = "wms接收入库单报文")
@Data
@TableName("api_receipt")
@ApiModel(value = "ApiReceipt对象", description = "")
public class ApiReceipt{
	@TableField(exist = false)
	private String appkey;

    @TableId(value = "SERIALKEY", type = IdType.AUTO)
    private Integer serialkey;

    private String whseid;

    private String storerkey;

    private String notes;

    private String shipfromcontact;

    private String shipfromstate;

    private String shipfromcity;

    private String shipfromaddressline1;

    private String shipfromphone;

    private String ediflag;

    private String msg;

    private String batchid;

    private LocalDateTime adddate;

    private String addwho;

    private LocalDateTime editdate;

    private String ediwho;

	private String source;//上游系统,
	private String receiptkey;// wms单号,
	private String externreceiptkey;// 入库单号,
	
	private String receiptdate; //订单创建时间,
	private String type; //单据类型,
	private String expectedreceiptdate; //预期到货时间,
	private String status;// 单据状态,
	private String openqty; //汇总统计,
	private String suppliercode; //发货地,
	private String suppliername;//发货地公司,
	private String carriername; //物流公司名称,
	private String carrierreference; //快递单号,
	private String logisticscode;
	private String logisticsname;
	private String carrierkey;
	
	private String edimsg;
	
	private int rtxqueue;
	 
	private String rtxflag;
	private String externalreceiptkey2;
	private String shipfromaddressline2;
	private String shipfromaddressline3;
	private String rtxexpresskey;
	private String rtxpofromhourse;
	private String rtxqmmethod;
	private String qmcustomerid;
    private String rtxqmtype;
    private String rtxshopnick;
    
    private String default01;
    private String default02;
    private String default03;
    private String default04;
    private String default05;
    private String default06;
    private String default07;
    private String default08;
    private String default09;
    private String default10;
    
    //中研项目新增字段
//    private String externreceiptkey2;
    private String rtxexternaltype;
    private String rtxpurgroup;
    private String rtxsalegroup;
    private String carriercode;
    private String rtxtotalamount;
    private String rtxfsrcstockid;
    private String rtxdeststockid;
    private String referencedocument;
    private String totalqty;
    private String rtxbsart;
    private String shipfromcontact2;
    
    private String consigneekey;//客户号
    private String productionorderdocument;//生产订单号
    
    
	
	@TableField(exist = false)
	private List<ApiReceiptdetail> details;

}
